import { REQ_GET_NEWS } from "../constants/new";

export const news = (state=[],action) => {
  switch(action.type) {
    case REQ_GET_NEWS : {
      return action.payload;
    }
    default : return state;
  }
}